package homeworke.question17;

/**
 * Author：毕龙
 * Date: 2024/4/18 19:32
 */
public class Test17 {
    public static void main(String[] args) {
        Team edj = new Team();
        Magicer magicer = new Magicer();
        magicer.setName("小法");
        magicer.setLevel(2);
        edj.addMember(magicer);
        Soldier soldier = new Soldier();
        soldier.setName("盖伦");
        soldier.setHurt(10);
        edj.addMember(soldier);
        int attackSum = edj.attackSum();
        System.out.println(attackSum);
    }
}
